package com.nlelpct.manage.feign;



import com.nlelpct.manage.model.vo.ESLogVo;
import com.nlelpct.manage.model.vo.EsSystemLog;
import com.nlelpct.manage.utils.Result;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(name = "LogBaseService", url = "${common-service.log-sms}")
public interface LogFeignService {


    /**
     * 保存操作日志
     * @param log 操作日志
     * @return 保存结果
     */
    @RequestMapping(value = "/es/saveOptLog", method = RequestMethod.POST)
    Result saveLog(@RequestBody EsSystemLog log);

    /**
     * 批量导出系统操作日志
     * @param ids ID集合
     * @return 导出操作日志
     */
    @RequestMapping(value = "/es/exportOptLogByIds", method = RequestMethod.POST)
    Result exportOptLogByIds(@RequestBody List<String> ids);


    /**
     * 全量导出系统操作日志
     * @param vo vo类
     * @return 导出操作日志
     */
    @RequestMapping(value = "/es/exportAllOptLog", method = RequestMethod.POST)
    Result exportAllOptLog(@RequestBody ESLogVo vo);




}
